package HomeWork.chapter05;

/**
 * Enjoy programming!!!
 * Time: 2021/12/3 -  17:25
 */
import java.util.Scanner;

public class Diamond03 {
    public static void main(String[] args){
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();

        for (int i = 1; i <= n / 2 + 1; i ++){
            for (int j = 1; j <= n / 2 - i + 1 ; j++){
                System.out.print(" ");
            }
            for (int k = 1; k <= 2 * i - 1; k++) {
                System.out.print("*");
            }
            System.out.println();
        }
        for (int i = 1; i <= n / 2; i++){
            for (int j = 1; j <= i; j++){
                System.out.print(" ");
            }
            for (int k = 1; k <= n - 2 * i  ; k++){
                System.out.print("*");
            }
            System.out.println();
        }

    }
}
